package com.example.demo.dao;

import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.example.demo.domain.EsArticle;

/**
 * Created by wengjunjie on 2018/3/29.
 */
@Repository
public interface ArticleRepository extends ElasticsearchRepository<EsArticle, String> {
    EsArticle findById(String id);
}
